﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WPF.Core
{
    /// <summary>
    /// 应用程序会话缓存
    /// </summary>
    public class AppSession
    {
        static AppSession()
        {
            Instance = new AppSession();
        }

        public static AppSession Instance { get; private set; }

        /// <summary>
        /// 当前语言
        /// </summary>
        public string AppLanguage { get; set; }

        /// <summary>
        /// 本地化字典
        /// </summary>
        public Dictionary<string, string> dictionary { get; set; }

        public string this[string key]
        {
            get { return dictionary[key]; }
        }
    }
}
